<?php

namespace yunj\traits\admin;

use yunj\enum\TipsTemplet;

trait ErrorController {

    public function tips() {
        $template = view_template("admin/error/tips");
        return view($template, TipsTemplet::assignData());
    }

    public function _empty() {
        if (request()->isAjax()) {
            return success_json();
        }
        die('empty');
    }

}